<template>
  <div class="side-bar">
    <router-link to="/forum/user" class="side-bar-item">
      <i class="iconfont icon-zhuye"></i>
      <span>主页</span>
    </router-link>
    <router-link to="/forum/class" class="side-bar-item">
      <i class="iconfont icon-kecheng"></i>
      <span>在学课程</span>
    </router-link>
    <router-link to="/forum/tiezi" class="side-bar-item">
      <i class="iconfont icon-tiezi"></i>
      <span>社区帖子</span>
    </router-link>
    <router-link to="/forum/comment" class="side-bar-item">
      <i class="iconfont icon-pingjia"></i>
      <span>参与评价</span>
    </router-link>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="scss">
.side-bar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 300px;
  padding: 10px 20px;
  margin-right: 16px;
  background-color: #fff;
  border-radius: 4px;

  .side-bar-item {
    padding: 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;

    &.router-link-active,
    &:hover {
      span,
      i {
        color: $primary;
      }
    }

    i {
      margin-right: 10px;
      font-size: 14px;
      font-weight: bold;
    }
  }
}
</style>
